package com.retail.product.common.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.retail.common.core.annotation.Excel;
import com.retail.common.core.web.domain.BaseEntity;

/**
 * 商品服务对象 t_product
 * 
 * @author retail
 * @date 2024-02-26
 */
public class TProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Integer productId;

    /** 商铺id */
    @Excel(name = "商铺id")
    private Integer shopId;

    /** 品牌id */
    private Integer brandId;

    /** 型号 */
    @Excel(name = "型号")
    private String productModel;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 销售状态：1-上架 2-下架 */
    @Excel(name = "销售状态：1-上架 2-下架")
    private Integer saleStatus;

    /** 分类id */
    @Excel(name = "分类id")
    private Integer categoryId;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String imgUrl;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String shopDescription;

    private TBrand tBrand;

    public TBrand gettBrand() {
        return tBrand;
    }

    public void settBrand(TBrand tBrand) {
        this.tBrand = tBrand;
    }

    public void setProductId(Integer productId)
    {
        this.productId = productId;
    }

    public Integer getProductId() 
    {
        return productId;
    }
    public void setShopId(Integer shopId) 
    {
        this.shopId = shopId;
    }

    public Integer getShopId() 
    {
        return shopId;
    }
    public void setBrandId(Integer brandId) 
    {
        this.brandId = brandId;
    }

    public Integer getBrandId() 
    {
        return brandId;
    }
    public void setProductModel(String productModel) 
    {
        this.productModel = productModel;
    }

    public String getProductModel() 
    {
        return productModel;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setSaleStatus(Integer saleStatus) 
    {
        this.saleStatus = saleStatus;
    }

    public Integer getSaleStatus() 
    {
        return saleStatus;
    }
    public void setCategoryId(Integer categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Integer getCategoryId() 
    {
        return categoryId;
    }
    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }
    public void setShopDescription(String shopDescription) 
    {
        this.shopDescription = shopDescription;
    }

    public String getShopDescription() 
    {
        return shopDescription;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("shopId", getShopId())
            .append("brandId", getBrandId())
            .append("productModel", getProductModel())
            .append("productName", getProductName())
            .append("saleStatus", getSaleStatus())
            .append("categoryId", getCategoryId())
            .append("imgUrl", getImgUrl())
            .append("shopDescription", getShopDescription())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
                .append ("tBrand",gettBrand ())
            .toString();
    }
}
